

/* Stack closed */
label.stack {
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin: 20px;
    padding: 10px;
    height: 350px;
    width: 250px;
    border: 1px solid #f38030;
    background: #eee;
    text-align: left;
    font: 20px/50px Helvetica;
    cursor: pointer;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s linear;
}

label.stack span.before,
label.stack span.after {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 350px;
    width: 250px;
    padding: 4%;
    border: 1px solid #333;
    background: #eee;
    transition: all 0.3s linear;
    text-align: right;
    z-index: -1;
    transform: rotateZ(-2.5deg);
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8);
}

label.stack span.before img,
label.stack span.after img {
    position: relative;
    display: block;
    border: 5px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    height: 50%;
    width: 100%;
    text-align: center;
}

label.stack span.after {
    z-index: -2;
    transform: rotate(-5.5deg);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
}

label.stack .block_left,
label.stack .block_right {
    position: relative;
    display: inline-block;
    vertical-align: top;
    height: 100%;
    width: 100%;
    transition: all 0.5s linear;
}

label.stack .block_right {
    width: 50%;
    opacity: 0;
    height: 0;
    width: 0;
}

label.stack .block_left img {
    position: relative;
    display: block;
    width: 100%;
    max-height: 50%;
    margin: 0 0 10px 0;
    border: 5px solid #fff;
    transition: all 0.5s ease-in;
    z-index: 10;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

label.stack .block_left .opened {
    position: relative;
    opacity: 0;
    height: 0;
    margin: 0;
    width: 100%;
    border: 1px solid #ccc;
    transition: all 0.5s linear;
}

label.stack .block_left .closed {
    position: relative;
    display: block;
    float: left;
    height: 50%;
    width: 100%;
    opacity: 1;
    transition: all 0.5s linear;
}

label.stack .block_left .closed h2 {
    display: inline;
    position: relative;
    margin: 0;
    padding: 0;
    color: #000;
}

/* Stack Hover */
label.stack:hover {
    margin-right: 130px;
    transition: all 0.5s ease-out;
}

label.stack:hover span.before {
    display: block;
    position: absolute;
    transform: rotate(4deg);
    margin-left: 50px;
    transition: all 0.5s ease-out;
}

label.stack:hover span.after {
    display: block;
    position: absolute;
    transform: rotate(8.5deg);
    margin-left: 100px;
    transition: all 0.5s ease-out;
}

